﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using MobileSales.Server.Services;

namespace MobileSales.Server.RestServices
{
    public class TaskServiceREST : TaskService, ITaskServiceREST
    {
        public Model.Tasks.Schedule GetSchedule(string scheduleId)
        {
            return base.GetSchedule(int.Parse(scheduleId));
        }

        public Model.Tasks.Task GetTask(string taskId)
        {
            return base.GetTask(int.Parse(taskId));
        }

        public Model.Tasks.CyclicTask GetCyclicTask(string taskId)
        {
            return base.GetCyclicTask(int.Parse(taskId));
        }

        public IEnumerable<Model.Tasks.Task> GetTaskList(string scheduleId)
        {
            return base.GetTaskList(int.Parse(scheduleId));
        }

        public IEnumerable<Model.Tasks.CyclicTask> GetCyclicTaskList(string employeeId)
        {
            return base.GetCyclicTaskList(int.Parse(employeeId));
        }

        public Model.Tasks.TaskStatus GetTaskStatus(string taskStatusId)
        {
            return base.GetTaskStatus(int.Parse(taskStatusId));
        }

        public Model.Tasks.TaskType GetTaskType(string taskTypeId)
        {
            return base.GetTaskType(int.Parse(taskTypeId));
        }

        public IEnumerable<Model.Tasks.Schedule> GetScheduleList(string employeeId)
        {
            return base.GetScheduleList(int.Parse(employeeId));
        }


        public Model.Tasks.Schedule GetScheduleByDate(int employeeId, string date)
        {
            return base.GetScheduleByDate(employeeId, DateTime.Parse(date));
        }
    }
}
